import { post } from "utils/fetch";

// 编辑保存
export const editSave = (data) => {
  return post(`/flow-platform/form/save`, data, { messageType: "close" });
};

// 表单详情
export const getFormDetail = ({ formId }) => {
  return post(
    `/flow-platform/form/detail`,
    { formId },
    { messageType: "close" },
  );
};

// 请求外部数据源数据
export const executeRequest = (data) => {
  return post(`/flow-platform/form/executeRequest`, data, {
    messageType: "close",
  });
};
